package cn.wizzer.app.user.modules.services;

import cn.wizzer.app.user.modules.models.UserGiftOrder;
import cn.wizzer.framework.base.service.BaseService;
import cn.wizzer.framework.page.Pagination;

public interface GiftOrderService extends BaseService<UserGiftOrder> {
    /**
     * 创建订单（刷礼记录
     * @param giftId
     * @param num
     * @param fromUser
     * @param toUser
     * @param liveNo
     */
    void create(String giftId, Integer num, String fromUser, String toUser, String liveNo);

    /**
     *
     * @param pageNumber
     * @param pageSize
     * @param toMe ==null?showAll:toMe?showGift4me:showGift2others
     * @param userId
     * @param sumToBalance
     * @return
     */
    Pagination data(Integer pageNumber, Integer pageSize, Boolean toMe, String userId, String anotherUser, Integer sumToBalance);

    int settlement(String id);
}
